package com.my12306.common.controller;

import com.my12306.common.util.CommentUtils;
import com.my12306.common.util.response.ResponseData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:苏牧夕
 * @Date:2020/5/31 18:40
 * @Version 1.0
 */
@RestController
@RequestMapping("rsa/rsa")
public class RSAController {
    @GetMapping("/publickey")
    public ResponseData getPublicKey() {
        return ResponseData.ok().put("publickey", CommentUtils.public_key);
    }
}
